﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using shopsoft.models.ClassBase;

namespace shopsoft.models
{
    /// <summary>
    /// 用户
    /// </summary>
    [Serializable]
    public class Users : BaseFields
    {
        /// <summary>
        /// 企业
        /// </summary>
        public Company Company { get; set; }

        /// <summary>
        /// 库房
        /// </summary>
        public Store Store { get; set; }

        /// <summary>
        /// 用户编号
        /// </summary>
        public string UserNO { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public string PassWord { get; set; }

        /// <summary>
        /// 角色
        /// </summary>
        public int RoleInfo { get; set; }

        /// <summary>
        /// 用户拥有菜单ID列表
        /// </summary>
        public string MenuIDs { get; set; }

        /// <summary>
        /// 用户拥有操作权限ID列表
        /// </summary>
        public string OperatorIDs { get; set; }

        /// <summary>
        /// 用户登录的IP地址
        /// </summary>
        public string IPAddress { get; set; }

        /// <summary>
        /// 错误登陆次数
        /// </summary>
        public int LoginErrorTimes { get; set; }

        /// <summary>
        /// 是否可用
        /// </summary>
        public bool? IsEnabled { get; set; }
    }
}
